home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14497 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  791 b 

  1. Path: news.cs.columbia.edu!news-not-for-mail
  2. From: jean@news.cs.columbia.edu (Hyae-Jin Oh)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: [HELP] ostream inheritance Q?
  5. Date: 29 Mar 1996 14:04:32 -0500
  6. Organization: Columbia University Department of Computer Science
  7. Message-ID: <4jhc80$bh@ground.cs.columbia.edu>
  8. References: <4jf4lc$t8l@ground.cs.columbia.edu>
  9. NNTP-Posting-Host: ground.cs.columbia.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Hyae-Jin Oh (jean@news.cs.columbia.edu) wrote:
  13.  
  14.  
  15. : {
  16. :     Nostream nout(cout.rdbuf());
  17.  
  18. :     nout << "TEST" << endl;
  19.  
  20. :     nout.header("blah");    --------- 1
  21. :     nout << header("blah"); --------- 2
  22. : }
  23.  
  24. oops. i meant
  25.  
  26.     nout.foo("blah");  --- 1
  27.     nout << foo("blah"); -- 2
  28.  
  29.  
  30. -- 
  31. Hyae-Jin Oh                        
  32. jean@cs.columbia.edu
  33. http://www.cs.columbia.edu/~jean/
  34.